import request from '@/utils/request'

// 查询任务考核列表
export function listAssessment(query) {
  return request({
    url: '/ies/assessment/list',
    method: 'get',
    params: query
  })
}

// 查询任务考核详细
export function getAssessment(workName) {
  return request({
    url: '/ies/assessment/' + workName,
    method: 'get'
  })
}

// 新增任务考核
export function addAssessment(data) {
  return request({
    url: '/ies/assessment',
    method: 'post',
    data: data
  })
}

// 修改任务考核
export function updateAssessment(data) {
  return request({
    url: '/ies/assessment',
    method: 'put',
    data: data
  })
}

// 删除任务考核
export function delAssessment(workName) {
  return request({
    url: '/ies/assessment/' + workName,
    method: 'delete'
  })
}
